FROM tiangolo/uwsgi-nginx-flask:python3.8

COPY ./app /app


COPY requirements.txt /tmp/requirements.txt

WORKDIR /app

RUN pip3 install -i http://mirrors.aliyun.com/pypi/simple/ numpy scikit-image imutils --trusted-host mirrors.aliyun.com
RUN apt-get update \
   && apt-get install -y python \
   && apt-get install -y python3-pip

RUN ["pip3", "install", "-r", "/tmp/requirements.txt"]

